<h1>Editing timeline_plugin_register</h1>

<% form_for(@timeline_plugin_register) do |f| %>
  <% if f.error_messages.length > 0 -%>
      <div class="errors"><%= f.error_messages %></div>

 <% end -%>




                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" >
                                    <label for="title">Title:</label>
                                </td>
                                <td valign="top" >
                                    <%= f.text_field :title %>

                                </td>
                            </tr>
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description">Description:</label>
                                </td>
                                <td valign="top" >
                                      <%= f.text_area :description %>
                                </td>
                            </tr>
                              <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Top Time Unit:</label>
                                </td>
                                <td valign="top"  >
                                     <%=   f.select :top_time_unit,  TimelineBandInfo::UNITS,  :prompt => "Select the Time unit for the top band"   %>
                                </td>
                            </tr>
                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Bottom Time Unit:</label>
                                </td>
                                <td valign="top"  >
                                     <%=   f.select :bottom_time_unit,  TimelineBandInfo::UNITS,  :prompt => "Select the Time unit for the bottom band"   %>
                                </td>
                            </tr>

                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="type">Specify Event Source URLs as a list:</label>
                                </td>
                                <td valign="top"  >
                                        <%= f.text_field :url_list %>
                                </td>
                            </tr>


                             <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="timeline_js">Timeline Javascript:</label>
                                </td>
                                <td valign="top" >
                                      <%= f.text_area :timeline_js %>
                                </td>
                            </tr>

                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button">
                        <input class="save" type="submit" value="Create"/>
                    </span>
                </div>





<% end %>

      <br>
<%= link_to 'Show', @timeline_plugin_register %> |
<%= link_to 'Back', timeline_plugin_registers_path %>